package com.llmcu;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * 这个类配合pom.xml文件配置，才能使打出的war包能被正常访问
 *
 * @author liuling
 * @date 2024-10-21 11:28
 */
public class ServletInitializer extends SpringBootServletInitializer {
    @Autowired
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        return builder.sources(Application.class);
    }
}
